package com.example.bbbb.beanlifecycle;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2024-02-01
 * Time: 20:06
 */

@Configuration
@ComponentScan("com.example.bbbb.beanlifecycle")
public class Myconfig {
    @Bean
    public User user() {
        return new User();
    }
}
